package com.recruit.service;

import com.recruit.dao.CompanyUpdateDao;
import com.recruit.entity.CompanyUser;

import java.sql.SQLException;

public class UpdateCompanyService {

    private CompanyUpdateDao companyUpdateDao = new CompanyUpdateDao();
    int index = 0;

    public int updateCompanyInfo(CompanyUser companyUser){
        try {
            index = companyUpdateDao.updateInfo(companyUser);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return this.index;
    }
}
